package com.weixing.mall.provider.model.dto;

import com.weixing.mall.core.support.msg.MsgBizEnum;
import com.weixing.mall.core.validation.Mobile;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * SendMsgDto
 *
 * @author  Small
 * @date  2020/1/17 15:17
 * @since  1.0
 **/
@Data
public class SendMsgDto {
    /**
     * 手机号
     */
    @Mobile(message = "手机号格式不正确")
    private String mobile;
    /**
     * 图形验证码
     */
    @NotNull(message = "图形验证码不能为空")
    private String imageCode;
    /**
     * 业务代码
     */
    @NotNull(message = "业务代码不能为空")
    private MsgBizEnum bizCode;
}
